import request from '@/utils/request';

export async function enterpriseList(params) {
  return request(`/loan/enterprise/list`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function detail(params) {
  return request(`/loan/enterprise/detail`, {
    method: "POST",
    body: {
      method: "POST",
      ...params
    }
  });
}

export async function withdraw(params) {
  return request(`/loan/withdraw`, {
    method: "POST",
    body: {
      ...params
    }
  });
}
export async function withdrawList(params) {
  return request(`/loan/withdraw/list`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
